/**
 * FileFind - ftp/shares indexing and search php engine
 * Module: common-persist
 * Description: Common persistence interfaces
 * Copyright (c) 2003-2010 Rage Steel, www.gt2.ru
 */
package ru.ffind.persist.service;

import java.util.List;

import ru.ffind.common.model.Directory;
import ru.ffind.common.model.Entry;
import ru.ffind.common.model.Host;
import ru.ffind.common.model.HostPath;

/**
 * Interface for accessing files and directories.
 *
 * @author Rage Steel
 */
public interface EntryService {

    /**
     * List entries in the directory.
     *
     * @param directory
     * @return
     */
    List<Entry> findEntries(Directory directory);
    
    /**
     * List entries in the directory by directory id.
     * 
     * @param dirId
     * @return
     */
    List<Entry> findEntriesById(Integer dirId);

    /**
     * List entries by host path.
     * 
     * @param host
     * @param hostPath
     * @return
     */
    List<Entry> findEntriesByHostPath(Host host, HostPath hostPath);
}
